
cc.Class({
    extends: cc.Component,

    properties: {
        p_num1:cc.Label,
        p_num2:cc.Label,

    },

    // LIFE-CYCLE CALLBACKS:

    // onLoad () {},

    start () {

    },
    changeValue(num1,num2){
        this.p_num1.string=num1+"";
        this.p_num2.string=num2+"";
        this.node.getComponent(cc.ProgressBar).progress=num1/num2;
    },

    // update (dt) {},
});
